package com.bp.village.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shaominjie
 * @description 房产使用状态
 * @date 2021/1/29 0029 16:33
 */
public enum EnumsBuildingUseStatus {
    /** 正常使用 **/
    NORMAL(0,"正常使用"),
    /** 闲置 **/
    IDLE(1,"闲置"),
    /** 部分闲置 **/
    PARTIALLY_IDLE(2,"部分闲置"),
    /** 破旧无法使用 **/
    UNAVAILABLE(3,"破旧无法使用");
    public final static Map<Integer, String> MAP = new HashMap<Integer, String>() {
        {
            put(0,"正常使用");
            put(1,"闲置");
            put(2,"部分闲置");
            put(3,"破旧无法使用");
        }
    };

    private Integer type;

    private String name;

    EnumsBuildingUseStatus(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
